<!--
  描述：渠道标示table页
  @author jiafei
  @since 2021/12/06 11:23
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'relateId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'channelId', align:'center'}">渠道ID</th>
        <th lay-data="{field:'channelName', unresize:true, align:'center'}">渠道名称</th>
        <th lay-data="{field:'updater', unresize:true, align:'center'}">操作人</th>
        <th lay-data="{field:'updateTime', unresize:true, align:'center'}">操作时间</th>
        <th lay-data="{field:'操作', width:200, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.channelId}">channelId</td>
        <td th:text="${item.channelName}">channelName</td>
        <td th:text="${item.updater}">updater</td>
        <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updateTime</td>
        <td>
            <div>
                <a class="layui-btn layui-btn-xs btn-operate layui-btn-danger"
                   th:if="${#authPermit.checkPermit('/channel/mark/group/assChannels/delChannel.action')}"
                   lay-text="解除关联" id="delChannelAssMark" text="修改" th:data-id="${item.channelId}">解除关联</a>&nbsp;&nbsp;
                <a class="layui-btn layui-btn-xs btn-operate" style="background-color: #70B603;"
                   th:if="${#authPermit.checkPermit('/channel/mark/group/assChannels/updateMark.action')}"
                   id="updateChannelAssMark" th:data-id="${item.channelId}"
                   lay-text="标识调整" text="修改">标识调整</a>&nbsp;&nbsp;
            </div>
        </td>
    </tr>
    </tbody>
</table>
